var page = require('webpage').create();
var tabUrl = "https://detail.tmall.com/item.htm?id=545061345197&ali_trackid=17_dac701db6218e1377b2d09486ba66d62&spm=a21bo.50862.201862-3.1.47An6l";
page.open(tabUrl, function(s) {
	if(s === "success") {
		console.log("success");
		phantom.exit();
	}else {
		console.log("fail");
		phantom.exit();
	}
})
//page.onResourceRequested = function(requestData, networkRequst) {
//	console.log(JSON.stringify(requestData));
//}
page.onResourceRequested = function(requestData, request) {
	if ((/https:\/\/.+?\.jpg|png$/gi).test(requestData['url'])) {
		console.log(";;;");
	    console.log('Skipping', requestData['url']);
	//  request.abort();
	}   
};
